//
//  DDbaseNetWork+HomePage.h
//  hnGovernment
//
//  Created by 安仔 on 17/3/7.
//  Copyright © 2017年 安仔. All rights reserved.
//

#import "DDbaseNetWork.h"

@interface DDbaseNetWork (HomePage)

/**
 应用接口
 
 @param exhibitionId 展台
 @param cityId 密码
 @param controller 发起请求的控制器
 @param success 成功的回调
 @param failure 失败的回调
 @return 请求的id
 */
- (NSNumber *)exhibitionId:(NSString *)exhibitionId
                    cityId:(NSString *)cityId
                controller:(NSObject *)controller
                   success:(successBlock)success
                   failure:(failureBlock)failure;

/**
 根据展台分类查询应用
 
 @param cityId 城市编码
 @param controller 发起请求的控制器
 @param success 成功的回调
 @param failure 失败的回调
 @return 请求的id
 */
- (NSNumber *)exhibitionCategoryId:(NSString *)exhibitionCategoryId
                            cityId:(NSString *)cityId
                        controller:(NSObject *)controller
                           success:(successBlock)success
                           failure:(failureBlock)failure;

/**
应用相关搜索
 
 @param name 搜索名字
 @param cityId 城市编码
 @param controller 发起请求的控制器
 @param success 成功的回调
 @param failure 失败的回调
 @return 请求的id
 */
- (NSNumber *)selectInfoByConditionName:(NSString *)name
                    cityId:(NSString *)cityId
                controller:(NSObject *)controller
                   success:(successBlock)success
                   failure:(failureBlock)failure;


/**
 banner
 
 @param cityCode 城市编码
 @param controller 发起请求的控制器
 @param success 成功的回调
 @param failure 失败的回调
 @return 请求的id
 */
- (NSNumber *)bannerContentWithCityCode:(NSString *)cityCode
                             controller:(NSObject *)controller
                                success:(successBlock)success
                                failure:(failureBlock)failure;



/**
根据分类查询所有新闻
 @param categoryId 参数
 @param controller 发起请求的控制器
 @param success 成功的回调
 @param failure 失败的回调
 @return 请求的id
 */
- (NSNumber *)cityNewsWithCategoryId:(NSString *)categoryId
                          Controller:(NSObject *)controller
                             success:(successBlock)success
                             failure:(failureBlock)failure;

/**
 热点新闻
 
 @param controller 发起请求的控制器
 @param success 成功的回调
 @param failure 失败的回调
 @return 请求的id
 */
- (NSNumber *)hotCityNewsWithController:(NSObject *)controller
                             success:(successBlock)success
                             failure:(failureBlock)failure;

/**
消息类别
 @param controller 发起请求的控制器
 @param success 成功的回调
 @param failure 失败的回调
 @return 请求的id
 */
- (NSNumber *)categoryCityNewsWithController:(NSObject *)controller
                                     success:(successBlock)success
                                     failure:(failureBlock)failure;


@end
